package com.xitang.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xitang.common.bean.BizCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BizCategoryMapper extends BaseMapper<BizCategory> {
    List<BizCategory> selectDataByCustom(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize,
                                         @Param("categoryCode") String categoryCode,
                                         @Param("categoryName") String categoryName);

    Long selectCountByCustom(@Param("categoryCode") String categoryCode, @Param("categoryName") String categoryName);
}